package com.atguigu.pojo;

import java.math.BigDecimal;
import java.util.Date;

//实现bean对象,对应着数据库 字段
public class Server {
    private String id;
    private String name;
    private String  ip;
    private String ports;
    private String freePorts;
    private Integer cpu;
    private Integer memory;
    private Integer disk;
    private Date endTime;

    public Server() {
    }

    public Server(String id, String name, String ip, String ports, String freePorts, Integer cpu, Integer memory, Integer disk, Date endTime) {
        this.id = id;
        this.name = name;
        this.ip = ip;
        this.ports = ports;
        this.freePorts = freePorts;
        this.cpu = cpu;
        this.memory = memory;
        this.disk = disk;
        this.endTime = endTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPorts() {
        return ports;
    }

    public void setPorts(String ports) {
        this.ports = ports;
    }

    public String getFreePorts() {
        return freePorts;
    }

    public void setFreePorts(String freePorts) {
        this.freePorts = freePorts;
    }

    public Integer getCpu() {
        return cpu;
    }

    public void setCpu(Integer cpu) {
        this.cpu = cpu;
    }

    public Integer getMemory() {
        return memory;
    }

    public void setMemory(Integer memory) {
        this.memory = memory;
    }

    public Integer getDisk() {
        return disk;
    }

    public void setDisk(Integer disk) {
        this.disk = disk;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Server{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", ip='" + ip + '\'' +
                ", ports='" + ports + '\'' +
                ", freePorts='" + freePorts + '\'' +
                ", cpu=" + cpu +
                ", memory=" + memory +
                ", disk=" + disk +
                ", endTime=" + endTime +
                '}';
    }
}
